import request from "@/utils/request";
import qs from "qs";

export function getContractList(data) {
  return request({
    url:
      process.env.VUE_APP_URL2 +
      "/admin/contractManagement/interface_contractmanagement_query",
    method: "post",
    data: qs.stringify(data)
  });
}

export function addContract(data) {
  return request({
    url:
      process.env.VUE_APP_URL2 +
      "/admin/contractManagement/interface_contractmanagement_save",
    method: "post",
    data: data
  });
}

export function getLockModel(data) {
  return request({
    url:
      process.env.VUE_APP_URL2 +
      "/admin/contractManagement/interface_lockmodel_query",
    method: "post",
    data: qs.stringify(data)
  });
}

export function getManageMsg(data) {
  return request({
    url:
      process.env.VUE_APP_URL2 +
      "/admin/contractManagement/interface_contractmanagement_view",
    method: "post",
    data: qs.stringify(data)
  });
}

export function getShipmentData(data) {
  return request({
    url:
      process.env.VUE_APP_URL2 +
      "/admin/contractManagement/getShipmentDetailData",
    method: "post",
    data: qs.stringify(data)
  });
}

export function editDiscount(data) {
  return request({
    url:
      process.env.VUE_APP_URL2 +
      "/admin/contractManagement/interface_discount_edit",
    method: "post",
    data: qs.stringify(data)
  });
}

export function getLockModelListByProId(data) {
  return request({
    url:
      process.env.VUE_APP_URL2 + "/admin/projectReport/getLockModelListByProId",
    method: "post",
    data: qs.stringify(data)
  });
}
